package com.franklin.ideaplugin.maphelper.col.operation.impl.collection;

import com.franklin.ideaplugin.maphelper.col.method.IColInsertMethod;
import com.franklin.ideaplugin.maphelper.col.operation.IColReadWriteOperation;
import com.franklin.ideaplugin.maphelper.col.method.IColQueryMethod;
import com.franklin.ideaplugin.maphelper.col.method.impl.ColInsertMethodImpl;
import com.google.common.collect.Sets;

import java.util.Collection;
import java.util.Set;

/**
 * collection操作
 *
 * @author Ye Junhui
 * @since 2024/3/11
 */
public class CollectionReadWriteOperation implements IColReadWriteOperation {

    @Override
    public String getClassQualifiedName() {
        return Collection.class.getName();
    }

    @Override
    public Set<IColInsertMethod> getInsertMethods() {
        return Sets.newHashSet(
                new ColInsertMethodImpl("add", 1, 0)
        );
    }

    @Override
    public Set<IColInsertMethod> getInsertAllMethods() {
        return Sets.newHashSet(
                new ColInsertMethodImpl("addAll", 1, 0)
        );
    }

    @Override
    public Set<IColQueryMethod> getQueryMethods() {
        return Sets.newHashSet();
    }
}
